import baseUrl from './baseUrl.js'

export const getAuthCode = () => {
	return new Promise((resolve, rej) => {
		uni.request({
			url: baseUrl + '/authCode/getAuthCode',
			method: 'GET',
			data: {},
			success(res) {
				resolve(res)
			},
			fail(err) {
				uni.showToast({
					title: '数据获取失败',
					icon:'error'
				})
				rej(err)
			}
		})
	})
}
